<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>爱选</title>
<meta name="keywords" content="" />
<meta name="description"  content="" />
<link href="/static/css/ixuan.css" rel="stylesheet" type="text/css" /></head>
<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/i.js"></script>
<body>
<div class="top">
    <div class="header">
      <div class="logo"><a href="http://localhost:8080"><img src="/static/images/logo.gif" alt="爱选" /><img src="images/logotext.gif" alt="爱选" /></a></div>
      <div class="headInfo">
          <div class="myInfo"><a href="/login/">登录</a>  <a href="/register/">注册</a></div>
          <div class="search"><input name="" type="text" class="seaIn" /><input name="" type="button" class="seaSo" value="搜索"/></div>
      </div>
    </div>
</div>
<div class="wrapper">
    <div class="main">
        <div style="margin:10px"><a href="/type/">全部</a> {% if type %} <a href="/type/{{ type.tid }}/" class="nowType"> {{ type.name }}</a> {% endif %}</div>
        <div class="allList">
            <ul>
            {% for problem in problems %}
                <li> 
                    <a href="/userhome/{{ problem.pid }}/"><img src="/static/img/1.jpg" class="userImg" alt="" /></a> <a href="/type/{{ problem.tid }}/" class="seaType">[{{ problem.tname }}]</a> <a class="listTit" href="/problem/{{ problem.pid }}"> {{ problem.title }} </a>
                    <span> {{ problem.pdesc }}</span>
                    <i>已有 {{ problem.choicecount }}个投票，{{ problem.comentcount }}个意见</i>
                </li>
            {% endfor %}
            </ul>
        </div>
        <div class="pages">
         {% if pages.leftmost_a >= 0 %}<a href="{{ urlbase }} {{ pages.leftmost_a }}"><img alt="第一页" src="/static/images/btn_pprev1.gif" /> </a>{% endif %}{% if pages.left_a>=0 %}<a href="{{ urlbase }} {{ pages.left_a }}"><img alt="上一页" src="/static/images/btn_prev1.gif" /> {% endif %}</a>
         <span id="pageNum">{% for page in pages.pages %}<a href="{{ urlbase }}{{ page.start }}"><strong>{{ page.number }}</strong></a> {% endfor %}</span>{% if pages.right_a %} <a href="{{ urlbase }}{{ pages.right_a }}"><img alt="下一页" src="/static/images/btn_next1.gif" /></a>{% endif %} {% if pages.rightmost_a %}<a href="{{ urlbase }}{{ pages.rightmost_a }}"><img alt="最末页" src="/static/images/btn_nnext1.gif" /></a>{% endif %} 
        </div>
    </div>
    <div class="right">
        <a href="/problem/create/"><img src="/static/images/tounow.gif" alt="立即发起投票" /></a>
        <div class="hot">
            <div class="hotTie">
                <ul>
                    <li id="month" class="hotN">本月热门投票</li>
                    <li id="week">本周热门投票</li>
                </ul>
            </div>
            <div class="hotCon">
                <ol class="month">
                	{% for p in monthHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
            	<ol class="week" style="display:none">
                	{% for p in weekHotProblems %}
                	<li><a href="/problem/{{ p.pid }}/">{{ p.title }}</a></li>
            		{% endfor %}            	
            	</ol>
            </div>
        </div>
    </div>
</div>
<div class="foot">
    <div>关于我们 · 联系我们 · 意见反馈   © 2011 dXXXX.com, all rights reserved                                         ICP：34325434667</div>
</div>
</body>
</html>
